package org.example.myleet.p1475;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[4,2,4,2,3]".equals(JsonUtils.toJson(solution.finalPrices(new int[]{8,4,6,2,3}))));
        Assert.isTrue("[1,2,3,4,5]".equals(JsonUtils.toJson(solution.finalPrices(new int[]{1,2,3,4,5}))));
        Assert.isTrue("[9,0,1,6]".equals(JsonUtils.toJson(solution.finalPrices(new int[]{10,1,1,6}))));
    }
}
